#include "adminwidget.h"
#include "ui_adminwidget.h"

AdminWidget::AdminWidget(QWidget *parent) :
    QWidget(parent),
    ui(new Ui::AdminWidget)
{
    ui->setupUi(this);
}

AdminWidget::~AdminWidget()
{
    delete ui;
    delete m_pAdminAddAccountWidget;
    m_pAdminAddAccountWidget = nullptr;
}

void AdminWidget::on_adduserbtn_clicked()
{
    m_pAdminAddAccountWidget = new AdminAddAccountWidget;
    //m_pAdminAddAccountWidget->setWindowModality(Qt::WindowModal);
    m_pAdminAddAccountWidget->setAttribute(Qt::WA_ShowModal, true);
    m_pAdminAddAccountWidget->show();

}
